img=imread('dehaze_01.jpg');
img_gray=rgb2gray(img);
img_rst=getSubjectBright(img_gray);
subplot(121);
imshow(img_gray);
title('object_brightness');
subplot(122);
imshow(img_rst);
title('subject_brightness');

%%测试光源估计代码
img=imread('dehaze_01.jpg');
clc;
close;
A=estimateA(img);